package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_ApiLog", catalog="Id")
public class TsApiLog extends BaseEntity<TsApiLog> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="System", nameJava="system", typeDataBase="varchar")
	private String system;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="varchar")
	private String type;
	@YsField(nameDataBase="Input", nameJava="input", typeDataBase="varchar")
	private String input;
	@YsField(nameDataBase="Output", nameJava="output", typeDataBase="varchar")
	private String output;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="int")
	private Integer code;
	@YsField(nameDataBase="Message", nameJava="message", typeDataBase="varchar")
	private String message;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TsApiLog setId(Long id) {
		this.id = id;
		return this;
	}
	public String getSystem() {
		return system;
	}
	public TsApiLog setSystem(String system) {
		this.system = system;
		return this;
	}
	public String getType() {
		return type;
	}
	public TsApiLog setType(String type) {
		this.type = type;
		return this;
	}
	public String getInput() {
		return input;
	}
	public TsApiLog setInput(String input) {
		this.input = input;
		return this;
	}
	public String getOutput() {
		return output;
	}
	public TsApiLog setOutput(String output) {
		this.output = output;
		return this;
	}
	public Integer getCode() {
		return code;
	}
	public TsApiLog setCode(Integer code) {
		this.code = code;
		return this;
	}
	public String getMessage() {
		return message;
	}
	public TsApiLog setMessage(String message) {
		this.message = message;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TsApiLog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsApiLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TsApiLog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TsApiLog tsApiLog(
		String system,
		String type,
		String input,
		String output,
		Integer code,
		String message,
		Integer status
			) {
		TsApiLog entity = new TsApiLog();
		entity.setSystem(system);
		entity.setType(type);
		entity.setInput(input);
		entity.setOutput(output);
		entity.setCode(code);
		entity.setMessage(message);
		entity.setStatus(status);
		return entity;
	}
}